<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>仪器信息</title>
		<%@ include file="common/meta.jsp"%>
		<link rel="stylesheet" href="css/tables.css" type="text/css"></link>
		<script type="text/javascript" src="js/userInfo.js" charset="UTF-8"></script>
	</head>
	<body>
		<div class="juzhong">
			<div class="top">
				<jsp:include page="common/head.jsp"></jsp:include>
			</div>

			<div class="main_2">
				<div class="left_2">
					<jsp:include page="leftUserInfo.jsp"></jsp:include>
				</div>

				<div class="right_2">
					<div class="right_nr">
						<div class="right_title">
							<span style="float: left;"><strong>修改个人信息</strong> </span>
							<div class="clear"></div>
						</div>

						<br>

						<div>
							<form id="updateInfo" method="post" action="iemployee!updateUserInfo.action">
								<table width="100%" class="tab_border" align="center">
									<tr>
										<td width="17%">
											登陆名：
										</td>
										<td>
											<label>
												${employee.loginAccount}
											</label>
											<input type="hidden" value="${employee.empID}" name="employee.empID" id="empID">
										</td>

										<td width="17%">
											密码：
										</td>

										<td>
											<b>******</b>
										</td>
									</tr>

									<tr>
										<td width="17%">
											真实姓名：
											<span style="color: #DB3632;">*</span>
										</td>
										<td>
											<input type="text" id="empName" name="employee.empName" value="${employee.empName}">
										</td>

										<td width="17%">
											联系电话：
											<span style="color: #DB3632;">*</span>
										</td>
										<td>
											<input type="text" value="${employee.linkPhone }" id="linkPhone" name="employee.linkPhone">
										</td>
									</tr>

									<tr>
										<td width="17%">
											邮箱：
											<span style="color: #DB3632;">*</span>
										</td>
										<td>
											<input type="text" value="${employee.email }" id="email" name="employee.email">
										</td>
										<td width="17%">
											身份 ：
											<span style="color: #DB3632;">*</span>
										</td>
										<td>
											<select id="userType" name="employee.userType">
												<option value="0" <s:if test="#request.employee.userType == 0">
													selected="selected"
												</s:if>>
													院内
												</option>
												<option value="2" <s:if test="#request.employee.userType == 2">
													selected="selected"
												</s:if>>
													校外
												</option>
												<option value="1">
													<s:if test="#request.employee.userType == 1">
													selected="selected"
													</s:if>
													校内
												</option>
											</select>
										</td>
									</tr>


									<tr>
										<td width="17%">
											性别：
											<span style="color: #DB3632;">*</span>
										</td>
										<td>
											<input type="radio" name="employee.sex" id="sex" value="男"
												<s:if test="#request.employee.sex == \"男\"">
												checked="checked"
											</s:if>>
											男
											<input type="radio" name="employee.sex" id="sex" value="女"
												<s:if test="#request.employee.sex == \"女\"">
												checked="checked"
											</s:if>>
											女
										</td>
										<td width="17%">
											手机 ：
										</td>
										<td>
											<input type="text" value="${employee.mobilePhone}" id="mobilePhone" name="employee.mobilePhone">
										</td>
									</tr>

									<tr>
										<td width="17%">
											所属机构：
											<span style="color: red">*</span>
										</td>
										<td>
											<input type="hidden" readonly="readonly" id="deptID" name="employee.deptID" value="${employee.deptID}">
											<s:if test="#request.employee.isCheck == 0">
												<input style="width: 50%" type="text" readonly="readonly" id="fordeptID" name="fordeptID"
													value="<s:if test="#request.employee.deptName != null">${employee.deptName}</s:if>">
												<a href="#" class="easyui-linkbutton" iconCls="icon-reload" id="chooseAppGroup">选择</a> &nbsp;
											</s:if>
											<s:else>
												<s:if test="#request.employee.deptName != null">${employee.deptName}</s:if>
											</s:else>
										</td>
										<td width="17%">
											工作单位：
											<span style="color: #DB3632;">*</span>
										</td>
										<td>
											<input type="text" name="employee.workEntity" id="workEntity" autocomplete="off" value="${employee.workEntity}"
												style="width: auto">
										</td>
									</tr>


									<tr>
										<td width="17%">
											身份证号：
										</td>
										<td>
											<input type="text" value="${employee.idCard}" name="employee.idCard" id="idCard">
										</td>
										<td width="17%">
											文化程度：
										</td>
										<td>
											<select name="employee.education" id="education">
												<option value=""
													<s:if test="#request.employee.education == null">
														selected="selected"
													</s:if>>
													--未知--
												</option>
												<option value="0"
													<s:if test="#request.employee.education == 0">
														selected="selected"
													</s:if>>
													文盲
												</option>
												<option value="1"
													<s:if test="#request.employee.education == 1">
														selected="selected"
													</s:if>>
													小学
												</option>
												<option value="2"
													<s:if test="#request.employee.education == 2">
														selected="selected"
													</s:if>>
													初中
												</option>
												<option value="3"
													<s:if test="#request.employee.education == 3">
														selected="selected"
													</s:if>>
													高中
												</option>
												<option value="4"
													<s:if test="#request.employee.education == 4">
														selected="selected"
													</s:if>>
													大专
												</option>
												<option value="5"
													<s:if test="#request.employee.education == 5">
														selected="selected"
													</s:if>>
													本科
												</option>
												<option value="6"
													<s:if test="#request.employee.education == 6">
														selected="selected"
													</s:if>>
													硕士
												</option>
												<option value="7"
													<s:if test="#request.employee.education == 7">
														selected="selected"
													</s:if>>
													博士
												</option>
												<option value="8"
													<s:if test="#request.employee.education == 8">
														selected="selected"
													</s:if>>
													博士后
												</option>
											</select>
										</td>
									</tr>

									<tr>
										<td width="17%">
											备注：
										</td>
										<td colspan="3">
											<input type="text" value="${employee.remark}" id="remark" name="employee.remark" style="width: 100%">
										</td>
									</tr>

									<tr>
										<td colspan="4" align="center">
											<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="doSubmit()">保存</a>
										</td>
									</tr>
								</table>
							</form>

						</div>
					</div>
				</div>
				<div class="clear"></div>
			</div>



			<div id="bottom">
				<jsp:include page="common/bottom.jsp"></jsp:include>
			</div>
		</div>
	</body>

	<div id="win" class="easyui-window" title="选择所属机构" style="width: 680px;" minimizable="false" maximizable="false"
		closable="true" closed="true">
		<table id="department" style="margin: 1; padding: 1">
		</table>
	</div>
</html>
